const Clutter = imports.gi.Clutter;
const Lang = imports.lang;
const Main = imports.ui.main;
+const Meta = imports.gi.Meta;
const Shell = imports.gi.Shell;
const Signals = imports.signals;
const DND = imports.ui.dnd;
Main.uiGroup.add_actor(this._dummy);
this._dummy.hide();
- global.init_xdnd();
+ if (!Meta.is_wayland_compositor())
+ global.init_xdnd();
global.connect('xdnd-enter', Lang.bind(this, this._onEnter));
global.connect('xdnd-position-changed', Lang.bind(this, this._onPositionChanged));
#include <gjs/gjs.h>
#include <meta/display.h>
#include <meta/meta-plugin.h>
+#include <meta/util.h>
#include "shell-global-private.h"
#include "shell-perf-log.h"
}
#endif
+#ifdef HAVE_WAYLAND
+ if (meta_is_wayland_compositor ())
+ return FALSE;
+#endif
+
/*
- * Pass the event to shell-global
+ * Pass the event to shell-global for XDND
*/
if (_shell_global_check_xdnd_event (shell_plugin->global, xev))
return TRUE;